package com.yuyu.qingmangmall.auth.vo;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotEmpty;


@Data
public class UserRegistVo {
    @NotEmpty(message = "用户名不能为空")
    @Length(min = 5,max = 9,message = "用户名大小必须在5-9字符之间")
    private String userName;

    @NotEmpty(message = "密码不能为空")
    @Length(min = 6,max = 9,message = "密码大小必须在6-9字符之间")
    private String password;

    @Email
    @NotEmpty(message = "邮箱不能为空")
    private String email;

    @NotEmpty(message = "验证码不能为空")
    private String smsCode;
}
